<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: CStrTmpt类 参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="../../da/d33/class_c_str_tmpt-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">CStrTmpt类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>字符串模式匹配类 字符串中没有提供对特殊格式的字符串的匹配功能。在LTRP中经常需要对特定字符串的格式进行判断或者内容提取，如对浮点的判断，对IP地址的判断 对Email地址的判断甚至对物料命名的格式进行判断等任务。因此需要开发这个模块利用正则表达式完成这样的任务。  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="../../d9/d60/str__template_8h_source.html">str_template.h</a>&gt;</code></p>
<div class="dynheader">
CStrTmpt 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="../../de/db3/class_c_str_tmpt__coll__graph.png" border="0" usemap="#a_c_str_tmpt_coll__map" alt="Collaboration graph"/></div>
<map name="a_c_str_tmpt_coll__map" id="a_c_str_tmpt_coll__map">
<area shape="rect" title="字符串模式匹配类 字符串中没有提供对特殊格式的字符串的匹配功能。在LTRP中经常需要对特定字符串的格式进行判断或者内容提取，如对浮点的判断，对IP地址的判断 对Email地址的判断甚至对物料命名的格式进..." alt="" coords="5,5,173,656"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a7a095ff8f5442bad700ee993aa6320d1" id="r_a7a095ff8f5442bad700ee993aa6320d1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7a095ff8f5442bad700ee993aa6320d1">CStrTmpt</a> ()=delete</td></tr>
<tr class="separator:a7a095ff8f5442bad700ee993aa6320d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a024766a507aad0c454f8af07d21c0193" id="r_a024766a507aad0c454f8af07d21c0193"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a024766a507aad0c454f8af07d21c0193">CStrTmpt</a> (const std::string &amp;str)=delete</td></tr>
<tr class="separator:a024766a507aad0c454f8af07d21c0193"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1a865294f3a04df0d77b86aa695d573" id="r_ab1a865294f3a04df0d77b86aa695d573"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab1a865294f3a04df0d77b86aa695d573">~CStrTmpt</a> ()=delete</td></tr>
<tr class="separator:ab1a865294f3a04df0d77b86aa695d573"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a8ad20a7f643b9a703374eaf877112fce" id="r_a8ad20a7f643b9a703374eaf877112fce"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a8ad20a7f643b9a703374eaf877112fce">isFloat</a> (const std::string &amp;str)</td></tr>
<tr class="memdesc:a8ad20a7f643b9a703374eaf877112fce"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断是否是浮点数  <br /></td></tr>
<tr class="separator:a8ad20a7f643b9a703374eaf877112fce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace6d067c0eaff8fa8b7e89ad0dad90a9" id="r_ace6d067c0eaff8fa8b7e89ad0dad90a9"><td class="memItemLeft" align="right" valign="top">static float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ace6d067c0eaff8fa8b7e89ad0dad90a9">toFloat</a> (const std::string &amp;str)</td></tr>
<tr class="memdesc:ace6d067c0eaff8fa8b7e89ad0dad90a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">将字符串转换成浮点数  <br /></td></tr>
<tr class="separator:ace6d067c0eaff8fa8b7e89ad0dad90a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c84c3062827cf899722e5b1bda30cbf" id="r_a7c84c3062827cf899722e5b1bda30cbf"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7c84c3062827cf899722e5b1bda30cbf">isReal</a> (const std::string &amp;str)</td></tr>
<tr class="separator:a7c84c3062827cf899722e5b1bda30cbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90d17445c4f65a09d711f680deb93d13" id="r_a90d17445c4f65a09d711f680deb93d13"><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a90d17445c4f65a09d711f680deb93d13">toReal</a> (const std::string &amp;str)</td></tr>
<tr class="separator:a90d17445c4f65a09d711f680deb93d13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a815f5956a400c54e8255b1e63f3cc684" id="r_a815f5956a400c54e8255b1e63f3cc684"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a815f5956a400c54e8255b1e63f3cc684">isDigit</a> (const std::string &amp;str)</td></tr>
<tr class="separator:a815f5956a400c54e8255b1e63f3cc684"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ffb47f18577d7ab069fa5d37f1164c7" id="r_a2ffb47f18577d7ab069fa5d37f1164c7"><td class="memItemLeft" align="right" valign="top">static long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2ffb47f18577d7ab069fa5d37f1164c7">toDigit</a> (const std::string &amp;str)</td></tr>
<tr class="separator:a2ffb47f18577d7ab069fa5d37f1164c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3493833b3c80438b17075fc28f4cf00b" id="r_a3493833b3c80438b17075fc28f4cf00b"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3493833b3c80438b17075fc28f4cf00b">isHex</a> (const std::string &amp;str)</td></tr>
<tr class="separator:a3493833b3c80438b17075fc28f4cf00b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f50144c01483e18d9a756a5d59f0dc0" id="r_a1f50144c01483e18d9a756a5d59f0dc0"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1f50144c01483e18d9a756a5d59f0dc0">toHex</a> (const std::string &amp;str)</td></tr>
<tr class="separator:a1f50144c01483e18d9a756a5d59f0dc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a308e17812387fc68f9d363632a8846" id="r_a3a308e17812387fc68f9d363632a8846"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3a308e17812387fc68f9d363632a8846">isDate</a> (const std::string &amp;str)</td></tr>
<tr class="separator:a3a308e17812387fc68f9d363632a8846"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa07c6d2e835aa5aff47ab69a0ad62a0c" id="r_aa07c6d2e835aa5aff47ab69a0ad62a0c"><td class="memItemLeft" align="right" valign="top">static time_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa07c6d2e835aa5aff47ab69a0ad62a0c">toDate</a> (const std::string &amp;str)</td></tr>
<tr class="separator:aa07c6d2e835aa5aff47ab69a0ad62a0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e6088976e333b3d4514a44a024bee78" id="r_a5e6088976e333b3d4514a44a024bee78"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5e6088976e333b3d4514a44a024bee78">isTime</a> (const std::string &amp;str)</td></tr>
<tr class="separator:a5e6088976e333b3d4514a44a024bee78"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39dcbde550235cc027efa0011f6a6e3b" id="r_a39dcbde550235cc027efa0011f6a6e3b"><td class="memItemLeft" align="right" valign="top">static time_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a39dcbde550235cc027efa0011f6a6e3b">toTime</a> (const std::string &amp;str)</td></tr>
<tr class="separator:a39dcbde550235cc027efa0011f6a6e3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f036c6f23c6da918e54117fb5bc9158" id="r_a6f036c6f23c6da918e54117fb5bc9158"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6f036c6f23c6da918e54117fb5bc9158">isDateTime</a> (const std::string &amp;str)</td></tr>
<tr class="separator:a6f036c6f23c6da918e54117fb5bc9158"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6cf0c37c4ea869e3bd0ded260e06ccd1" id="r_a6cf0c37c4ea869e3bd0ded260e06ccd1"><td class="memItemLeft" align="right" valign="top">static time_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6cf0c37c4ea869e3bd0ded260e06ccd1">toDateTime</a> (const std::string &amp;str)</td></tr>
<tr class="separator:a6cf0c37c4ea869e3bd0ded260e06ccd1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>字符串模式匹配类 字符串中没有提供对特殊格式的字符串的匹配功能。在LTRP中经常需要对特定字符串的格式进行判断或者内容提取，如对浮点的判断，对IP地址的判断 对Email地址的判断甚至对物料命名的格式进行判断等任务。因此需要开发这个模块利用正则表达式完成这样的任务。 </p>
<dl class="section version"><dt>版本</dt><dd>1.0.1.20 </dd></dl>
<dl class="section date"><dt>日期</dt><dd>2011-7-14 ~ 2020-12-25 </dd></dl>
<dl class="section author"><dt>作者</dt><dd>宋炜 2019-6-22 修改模块，去掉wx的相关内容，重新使用STL实现，方便进行MVC分离设计 2020-12-25 去掉DLL_EXPORT描述 </dd></dl>

<p class="definition">在文件 <a class="el" href="../../d9/d60/str__template_8h_source.html">str_template.h</a> 第 <a class="el" href="../../d9/d60/str__template_8h_source.html#l00021">21</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a7a095ff8f5442bad700ee993aa6320d1" name="a7a095ff8f5442bad700ee993aa6320d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7a095ff8f5442bad700ee993aa6320d1">&#9670;&#160;</a></span>CStrTmpt() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CStrTmpt::CStrTmpt </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a024766a507aad0c454f8af07d21c0193" name="a024766a507aad0c454f8af07d21c0193"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a024766a507aad0c454f8af07d21c0193">&#9670;&#160;</a></span>CStrTmpt() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CStrTmpt::CStrTmpt </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>str</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ab1a865294f3a04df0d77b86aa695d573" name="ab1a865294f3a04df0d77b86aa695d573"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab1a865294f3a04df0d77b86aa695d573">&#9670;&#160;</a></span>~CStrTmpt()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CStrTmpt::~CStrTmpt </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a3a308e17812387fc68f9d363632a8846" name="a3a308e17812387fc68f9d363632a8846"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a308e17812387fc68f9d363632a8846">&#9670;&#160;</a></span>isDate()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CStrTmpt::isDate </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>str</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../db/ddf/str__template_8cpp_source.html">str_template.cpp</a> 第 <a class="el" href="../../db/ddf/str__template_8cpp_source.html#l00104">104</a> 行定义.</p>

</div>
</div>
<a id="a6f036c6f23c6da918e54117fb5bc9158" name="a6f036c6f23c6da918e54117fb5bc9158"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6f036c6f23c6da918e54117fb5bc9158">&#9670;&#160;</a></span>isDateTime()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CStrTmpt::isDateTime </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>str</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../db/ddf/str__template_8cpp_source.html">str_template.cpp</a> 第 <a class="el" href="../../db/ddf/str__template_8cpp_source.html#l00138">138</a> 行定义.</p>

</div>
</div>
<a id="a815f5956a400c54e8255b1e63f3cc684" name="a815f5956a400c54e8255b1e63f3cc684"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a815f5956a400c54e8255b1e63f3cc684">&#9670;&#160;</a></span>isDigit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CStrTmpt::isDigit </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>str</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../db/ddf/str__template_8cpp_source.html">str_template.cpp</a> 第 <a class="el" href="../../db/ddf/str__template_8cpp_source.html#l00049">49</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../db/d6a/class_c_str_tmpt_a815f5956a400c54e8255b1e63f3cc684_icgraph.png" border="0" usemap="#adb/d6a/class_c_str_tmpt_a815f5956a400c54e8255b1e63f3cc684_icgraph" alt=""/></div>
<map name="adb/d6a/class_c_str_tmpt_a815f5956a400c54e8255b1e63f3cc684_icgraph" id="adb/d6a/class_c_str_tmpt_a815f5956a400c54e8255b1e63f3cc684_icgraph">
<area shape="rect" title=" " alt="" coords="221,183,344,209"/>
<area shape="rect" href="../../d6/d51/class_c_my_s_q_l_tuple.html#ac850fd0e2975b8e60b65d8284f403d0e" title=" " alt="" coords="5,5,173,32"/>
<area shape="poly" title=" " alt="" coords="266,170,229,107,202,74,171,46,151,35,153,30,174,42,206,71,233,104,271,167"/>
<area shape="rect" href="../../d6/d51/class_c_my_s_q_l_tuple.html#aba9646146081d702a56e9c595ef80bfa" title=" " alt="" coords="5,56,173,83"/>
<area shape="poly" title=" " alt="" coords="258,172,220,134,171,97,146,86,149,81,174,92,223,130,262,169"/>
<area shape="rect" href="../../d6/d51/class_c_my_s_q_l_tuple.html#aa0475aae12c4c17af3551c17f5f76879" title=" " alt="" coords="5,107,173,133"/>
<area shape="poly" title=" " alt="" coords="239,178,172,148,139,136,140,131,174,143,241,173"/>
<area shape="rect" href="../../d6/d51/class_c_my_s_q_l_tuple.html#a644e50841d6b26211402095be938f303" title=" " alt="" coords="5,157,173,184"/>
<area shape="poly" title=" " alt="" coords="205,189,173,184,174,179,205,183"/>
<area shape="rect" href="../../d6/d51/class_c_my_s_q_l_tuple.html#a464e2e083b2e50435c80252a7e12c7b1" title=" " alt="" coords="5,208,173,235"/>
<area shape="poly" title=" " alt="" coords="205,209,174,213,173,208,205,203"/>
<area shape="rect" href="../../d6/d51/class_c_my_s_q_l_tuple.html#ac19066f5ac0cd91e6331b1a9591f842b" title=" " alt="" coords="5,259,173,285"/>
<area shape="poly" title=" " alt="" coords="241,219,174,249,140,261,139,256,172,244,239,214"/>
<area shape="rect" href="../../d6/d51/class_c_my_s_q_l_tuple.html#a66ddfdfd78441925d5d08de5a7b3d20d" title=" " alt="" coords="5,309,173,336"/>
<area shape="poly" title=" " alt="" coords="262,223,223,262,174,300,149,311,146,306,171,295,220,258,258,220"/>
<area shape="rect" href="../../d6/d51/class_c_my_s_q_l_tuple.html#ac2fa472220557dac21104c250f6fa740" title=" " alt="" coords="5,360,173,387"/>
<area shape="poly" title=" " alt="" coords="271,225,233,288,206,321,174,350,153,362,151,357,171,346,202,318,229,285,266,222"/>
</map>
</div>

</div>
</div>
<a id="a8ad20a7f643b9a703374eaf877112fce" name="a8ad20a7f643b9a703374eaf877112fce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8ad20a7f643b9a703374eaf877112fce">&#9670;&#160;</a></span>isFloat()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CStrTmpt::isFloat </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>str</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>判断是否是浮点数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">str</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>bool , 是浮点数则返回true, 否则返回false </dd></dl>

<p class="definition">在文件 <a class="el" href="../../db/ddf/str__template_8cpp_source.html">str_template.cpp</a> 第 <a class="el" href="../../db/ddf/str__template_8cpp_source.html#l00004">4</a> 行定义.</p>

</div>
</div>
<a id="a3493833b3c80438b17075fc28f4cf00b" name="a3493833b3c80438b17075fc28f4cf00b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3493833b3c80438b17075fc28f4cf00b">&#9670;&#160;</a></span>isHex()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CStrTmpt::isHex </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>str</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../db/ddf/str__template_8cpp_source.html">str_template.cpp</a> 第 <a class="el" href="../../db/ddf/str__template_8cpp_source.html#l00072">72</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../db/d6a/class_c_str_tmpt_a3493833b3c80438b17075fc28f4cf00b_icgraph.png" border="0" usemap="#adb/d6a/class_c_str_tmpt_a3493833b3c80438b17075fc28f4cf00b_icgraph" alt=""/></div>
<map name="adb/d6a/class_c_str_tmpt_a3493833b3c80438b17075fc28f4cf00b_icgraph" id="adb/d6a/class_c_str_tmpt_a3493833b3c80438b17075fc28f4cf00b_icgraph">
<area shape="rect" title=" " alt="" coords="221,183,341,209"/>
<area shape="rect" href="../../d6/d51/class_c_my_s_q_l_tuple.html#ac850fd0e2975b8e60b65d8284f403d0e" title=" " alt="" coords="5,5,173,32"/>
<area shape="poly" title=" " alt="" coords="265,170,228,107,202,74,171,46,151,35,153,30,174,42,206,71,233,104,270,167"/>
<area shape="rect" href="../../d6/d51/class_c_my_s_q_l_tuple.html#aba9646146081d702a56e9c595ef80bfa" title=" " alt="" coords="5,56,173,83"/>
<area shape="poly" title=" " alt="" coords="257,172,219,134,171,97,146,86,149,81,174,92,223,130,261,169"/>
<area shape="rect" href="../../d6/d51/class_c_my_s_q_l_tuple.html#aa0475aae12c4c17af3551c17f5f76879" title=" " alt="" coords="5,107,173,133"/>
<area shape="poly" title=" " alt="" coords="239,178,172,148,139,137,141,131,174,143,241,173"/>
<area shape="rect" href="../../d6/d51/class_c_my_s_q_l_tuple.html#a644e50841d6b26211402095be938f303" title=" " alt="" coords="5,157,173,184"/>
<area shape="poly" title=" " alt="" coords="205,189,173,184,173,179,205,183"/>
<area shape="rect" href="../../d6/d51/class_c_my_s_q_l_tuple.html#a464e2e083b2e50435c80252a7e12c7b1" title=" " alt="" coords="5,208,173,235"/>
<area shape="poly" title=" " alt="" coords="205,209,173,213,173,208,205,203"/>
<area shape="rect" href="../../d6/d51/class_c_my_s_q_l_tuple.html#ac19066f5ac0cd91e6331b1a9591f842b" title=" " alt="" coords="5,259,173,285"/>
<area shape="poly" title=" " alt="" coords="241,219,174,249,141,261,139,255,172,244,239,214"/>
<area shape="rect" href="../../d6/d51/class_c_my_s_q_l_tuple.html#a66ddfdfd78441925d5d08de5a7b3d20d" title=" " alt="" coords="5,309,173,336"/>
<area shape="poly" title=" " alt="" coords="261,223,223,262,174,300,149,311,146,306,171,295,219,258,257,220"/>
<area shape="rect" href="../../d6/d51/class_c_my_s_q_l_tuple.html#ac2fa472220557dac21104c250f6fa740" title=" " alt="" coords="5,360,173,387"/>
<area shape="poly" title=" " alt="" coords="270,225,233,288,206,321,174,350,153,362,151,357,171,346,202,318,228,285,265,222"/>
</map>
</div>

</div>
</div>
<a id="a7c84c3062827cf899722e5b1bda30cbf" name="a7c84c3062827cf899722e5b1bda30cbf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c84c3062827cf899722e5b1bda30cbf">&#9670;&#160;</a></span>isReal()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CStrTmpt::isReal </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>str</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../db/ddf/str__template_8cpp_source.html">str_template.cpp</a> 第 <a class="el" href="../../db/ddf/str__template_8cpp_source.html#l00027">27</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../db/d6a/class_c_str_tmpt_a7c84c3062827cf899722e5b1bda30cbf_icgraph.png" border="0" usemap="#adb/d6a/class_c_str_tmpt_a7c84c3062827cf899722e5b1bda30cbf_icgraph" alt=""/></div>
<map name="adb/d6a/class_c_str_tmpt_a7c84c3062827cf899722e5b1bda30cbf_icgraph" id="adb/d6a/class_c_str_tmpt_a7c84c3062827cf899722e5b1bda30cbf_icgraph">
<area shape="rect" title=" " alt="" coords="221,31,344,57"/>
<area shape="rect" href="../../d6/d51/class_c_my_s_q_l_tuple.html#a9f9ed899fddf5d89e0f1783cd926d160" title=" " alt="" coords="5,5,173,32"/>
<area shape="poly" title=" " alt="" coords="205,37,173,32,174,27,205,31"/>
<area shape="rect" href="../../d6/d51/class_c_my_s_q_l_tuple.html#a34b7e853fd15adde589031b0e237e617" title=" " alt="" coords="5,56,173,83"/>
<area shape="poly" title=" " alt="" coords="205,57,174,61,173,56,205,51"/>
</map>
</div>

</div>
</div>
<a id="a5e6088976e333b3d4514a44a024bee78" name="a5e6088976e333b3d4514a44a024bee78"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e6088976e333b3d4514a44a024bee78">&#9670;&#160;</a></span>isTime()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CStrTmpt::isTime </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>str</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../db/ddf/str__template_8cpp_source.html">str_template.cpp</a> 第 <a class="el" href="../../db/ddf/str__template_8cpp_source.html#l00125">125</a> 行定义.</p>

</div>
</div>
<a id="aa07c6d2e835aa5aff47ab69a0ad62a0c" name="aa07c6d2e835aa5aff47ab69a0ad62a0c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa07c6d2e835aa5aff47ab69a0ad62a0c">&#9670;&#160;</a></span>toDate()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">time_t CStrTmpt::toDate </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>str</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../db/ddf/str__template_8cpp_source.html">str_template.cpp</a> 第 <a class="el" href="../../db/ddf/str__template_8cpp_source.html#l00113">113</a> 行定义.</p>

</div>
</div>
<a id="a6cf0c37c4ea869e3bd0ded260e06ccd1" name="a6cf0c37c4ea869e3bd0ded260e06ccd1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6cf0c37c4ea869e3bd0ded260e06ccd1">&#9670;&#160;</a></span>toDateTime()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">time_t CStrTmpt::toDateTime </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>str</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../db/ddf/str__template_8cpp_source.html">str_template.cpp</a> 第 <a class="el" href="../../db/ddf/str__template_8cpp_source.html#l00144">144</a> 行定义.</p>

</div>
</div>
<a id="a2ffb47f18577d7ab069fa5d37f1164c7" name="a2ffb47f18577d7ab069fa5d37f1164c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ffb47f18577d7ab069fa5d37f1164c7">&#9670;&#160;</a></span>toDigit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long CStrTmpt::toDigit </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>str</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../db/ddf/str__template_8cpp_source.html">str_template.cpp</a> 第 <a class="el" href="../../db/ddf/str__template_8cpp_source.html#l00057">57</a> 行定义.</p>

</div>
</div>
<a id="ace6d067c0eaff8fa8b7e89ad0dad90a9" name="ace6d067c0eaff8fa8b7e89ad0dad90a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace6d067c0eaff8fa8b7e89ad0dad90a9">&#9670;&#160;</a></span>toFloat()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float CStrTmpt::toFloat </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>str</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>将字符串转换成浮点数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">str</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功操作返回转换后的值 </dd></dl>

<p class="definition">在文件 <a class="el" href="../../db/ddf/str__template_8cpp_source.html">str_template.cpp</a> 第 <a class="el" href="../../db/ddf/str__template_8cpp_source.html#l00013">13</a> 行定义.</p>

</div>
</div>
<a id="a1f50144c01483e18d9a756a5d59f0dc0" name="a1f50144c01483e18d9a756a5d59f0dc0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f50144c01483e18d9a756a5d59f0dc0">&#9670;&#160;</a></span>toHex()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t CStrTmpt::toHex </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>str</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../db/ddf/str__template_8cpp_source.html">str_template.cpp</a> 第 <a class="el" href="../../db/ddf/str__template_8cpp_source.html#l00082">82</a> 行定义.</p>

</div>
</div>
<a id="a90d17445c4f65a09d711f680deb93d13" name="a90d17445c4f65a09d711f680deb93d13"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a90d17445c4f65a09d711f680deb93d13">&#9670;&#160;</a></span>toReal()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double CStrTmpt::toReal </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>str</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../db/ddf/str__template_8cpp_source.html">str_template.cpp</a> 第 <a class="el" href="../../db/ddf/str__template_8cpp_source.html#l00035">35</a> 行定义.</p>

</div>
</div>
<a id="a39dcbde550235cc027efa0011f6a6e3b" name="a39dcbde550235cc027efa0011f6a6e3b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a39dcbde550235cc027efa0011f6a6e3b">&#9670;&#160;</a></span>toTime()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">time_t CStrTmpt::toTime </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>str</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../db/ddf/str__template_8cpp_source.html">str_template.cpp</a> 第 <a class="el" href="../../db/ddf/str__template_8cpp_source.html#l00131">131</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>include/<a class="el" href="../../d9/d60/str__template_8h_source.html">str_template.h</a></li>
<li>src/<a class="el" href="../../db/ddf/str__template_8cpp_source.html">str_template.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
